package com.syni.mdd.yhd.common.all.dto.requestDto.userOpinion;

import com.syni.mdd.yhd.common.all.dto.requestDto.BaseReDto;
import com.syni.mdd.yhd.common.all.validationGroup.GroupInsert;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @className OpinionReDto
 * @description TOO
 * @Author cfx
 * @DATE 2019/8/28 15:00
 * @VERSION 1.0
 **/
@Data
public class OpinionReDto extends BaseReDto {

    @NotNull(groups = GroupInsert.class)
    @Size(max = 255,groups = GroupInsert.class)
    private String content;

    private String extraImg;

    @Size(max = 128,groups = GroupInsert.class)
    @NotNull(groups = GroupInsert.class)
    private String contact;

    @NotNull(groups = GroupInsert.class)
    private Integer fromOrigin;

    private Integer businessId;
}
